package behavioral.template;

import lombok.Data;

/**
 * @Description: 表演抽象类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
@Data
public abstract class ActTemplate {
    private String departmentName;

    public void makeUp() {
        System.out.println(this.departmentName + "部门，正在化妆");
    }

    public void appear() {
        System.out.println(this.departmentName + "部门，登台");
    }

    public abstract void act();

    public void complete() {
        System.out.println("完结撒花，鼓掌！");
    }

    public void start() {
        this.makeUp();
        this.appear();
        this.act();
        this.complete();
    }
}
